package com.huan.springboot.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * 配置 persons 这个库的mongo配置
 *
 * @author huan.fu
 * @date 2018/4/24 - 15:23
 */
@Configuration
@EnableMongoRepositories(basePackages = "com.huan.springboot.repository.persons",
		mongoTemplateRef = PersonsMongoConfig.MONGO_TEMPLATE_REF)
public class PersonsMongoConfig {

	/**
	 * 引用的mongo template 模板的名字
	 */
	public static final String MONGO_TEMPLATE_REF = "personsMongoTemplateRef";

}
